const loginStatus = (state, getters) => {
    return !!(state.user.account.token && state.user.account.userId)
}


const isSuperManger = (state, getters) => {
    let userType = state.user.userInfo.userType
    if (userType == '2') {
        return true
    } else {
        return false
    }
}

export default {
    loginStatus,
    isSuperManger
}
